package cn.iocoder.yudao.module.book.controller.app.homeworks.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "用户 App - 作业新增 Request VO")
@Data
public class AppHomeworksSaveReqVO {

    @Schema(description = "班级id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1871")
    @NotNull(message = "班级id不能为空")
    private Integer classesId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "日期", requiredMode = Schema.RequiredMode.REQUIRED, example = "2024-01-01")
    @NotEmpty(message = "日期不能为空")
    private String date;

    @Schema(description = "作业要求", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "作业要求不能为空")
    private String requirement;

    @Schema(description = "作业内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "作业内容不能为空")
    private String description;
}
